label: Redo measure() code
authorBenjamin Otte <otte@redhat.com>
Thu, 4 Nov 2021 14:56:37 +0000 (15:56 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 5 Nov 2021 19:29:42 +0000 (20:29 +0100)
commit8e27fc7f9b0f34880bdb3650ba141ad65883c094
treedc50d0ea892a6e6d523fd4350ddead0b35e60204
parent53acff167b2ccb60203b9de0e436be8dfa9f570d
label: Redo measure() code

The old code couldn't properly do height-for-width because it only
computed the widest and smallest layout instead of looking at the actual
passed in for-size.

The label-sizing reftest has been adapted as the label code is now smart
enough to always display the whole text and no longer requests a too
small width-for-single-row when wrapping.
gtk/gtklabel.c
testsuite/reftests/label-sizing.ref.ui